package com.yhd.exception;


import com.yhd.enums.ResultEnum;

public class GlobalException extends RuntimeException {

    private static final long serialVersionUID = 1L;

    private ResultEnum result;

    public GlobalException(String message) {
        super(message);
    }

    public GlobalException(ResultEnum resultEnum) {
        super(resultEnum.getMessage());
        this.result = resultEnum;
    }

    public ResultEnum getResult() {
        return result;
    }


}
